package gjtx2;

import java.util.Scanner;

public class DoAway {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入字符串");
        String a=in.next();
        char[] b1=new char[a.length()];
        char[] b=a.toCharArray();
        int j=0;
        for (int i=0;i<a.length();i++){
            int c=b[i];
            if (c>=97&&c<=122){
                    b1[j++]=(char) c;
            }
        }
        String[] a1=new String[b1.length];
        StringBuffer sb=new StringBuffer();
        for (char s:b1)
            sb.append(s);
        System.out.print(sb);
    }
}
